import { request } from '@/utils/service'
import type * as Home from '@/api/home/types/home'

export function queryBatteryInfo(data: Home.queryBatteryInfoRequestData) {
  return request<Home.queryBatteryInfoResponse>({
    url: '/queryBatteryInfo',
    method: 'post',
    data,
  })
}

export function ChargeDischarge(data: Home.ChargeDischargeswitchRequestData) {
  return request<Home.ChargeDischargeswitchResponse>({
    url: '/ChargeDischargeSwitch',
    method: 'post',
    data,
  })
}
